package com.tandashi.springbootstudy01.service.spi.service;

import java.util.ServiceLoader;

public class SpiTest {
    public static void main(String[] args) {
        ServiceLoader<IShout> load = ServiceLoader.load(IShout.class);
        for (IShout s : load) {
            s.shout();
        }
    }
}
